package edu.washington.cs.cmdsynth;

public class CmdRepository {

	//a reference link:
	//http://www-users.york.ac.uk/~hcb1/unix20.html
	public static String cmd1 = "find all files starting with \"abc\" and then sort them";
	
	public static String cmd2 = "delete all files in the current directory";
	
	//ls
	//wrong tag => should be list
	public static String lstCur = "list files in current directory";
	
	//ls -l
	public static String lstLongCur = "long list of files in current directory";
	
	//ls -a
	public static String lstHiddenCur = "list all files (including hidden) in current directory";
	
	//pwd
	public static String printCur = "print working directory";
	
	//cd dirname
	public static String moveIntoDir = "moves into the directory with name `dirname'";
	
	//cd ..
	public static String moveUp = "moves up one level in directory hierarchy ";
	
	//mkdir dirname
	public static String mkdir = "makes a new directory with name `dirname'";
	
	//rmdir dirname
	public static String rmDir = "removes the (empty) directory with name `dirname'";
	
	//rmdir -r dirname
	public static String rmDirRecur = "recursively removes directories and subdirectories";
	
	//copy files files2
	public static String copy = "makes a copy of file1 and calls it file2";
	
	//move files1 files2
	public static String mvFile = "moves (deletes) file1 to (creates new file) file2";
	
	//rm file1
	public static String rmFile = "removes (deletes) file1";
	
	//rm -r files
	public static String rmFileConfirm = "asks for confirmation that you want to delete file1";
	
	//history
	public static String lstCmd = "lists your last 10 (variable) commands and numbers them";
	
	//more files
	public static String more = "displays the file 'file1' a page at a time";
	
	//man utility
	public static String manPage = "manual pages for the utility 'utilityname'";
	
	//chmod u+r files
	public static String chmod = "+ grants, -removes permission to read(r), " +
			"write(w) or execute(x) for user(u), group(g), others(o) or all(a) " +
			"(for directories, ...)";
	
	//lp -Pprintername file1
	public static String print = "prints file1 to printer `printername'";
	
	//lpq -Pprinternmame
	public static String queryPrint = "enquiry print queue";
	
	//lprm -Pprintername jobnumber	
	public static String rmPrintQueue = "removes from print queue";
	
	//cal month year	
	public static String calendar = "displays days/dates of month/year";
	
	//wc files
	public static String wc = "counts lines, words, characters";
	
	//who
	public static String displayUser = "display the users who are logged-on";
	
	//cat files
	public static String conFiles = "concatenate and display files";
	
	//grep pattern files
	public static String grepFiles = "search files for pattern";
	
	//sort files	
	public static String sortFiles = "sort the specified files";
	
	//sentence from the following paper
	//http://homes.cs.washington.edu/~aritter/p167-ritter.pdf
	public static String selectFiles1 = "Select all .py and .cs files";
	
	public static String selectFiles2 = "Select all files whose name contains the " +
			"substring 'OLD' or 'BACKUP'";
	
	public static String selectFiles3 = "Select all .pdf files whose size is greater than 200K";
	
	public static String selectFiles4 = "Select all files whose name contains the " +
			"substrings 'MARKF' or 'JOEP' but not the string 'tmp.'";
	
	public static String selectFiles5 = "Select all files containing the substring 'kathyp.'";
	
	public static String selectFiles6 = "Select all files containing the substring JOEP whose size is larger than 3 Megabytes";
	
	public static String selectFiles7 = " Select all .txt and .cab files in a mediumsized directory.";
	
	public static String selectFiles8 = "Select all files containing the substring 'Copy.'";
	
	//more commands: http://www.thegeekstuff.com/2010/11/50-linux-commands/
}